package com.lizhi.yun.db.sfrobot.entity;


import com.lizhi.mybatis.boot.Description;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.persistence.*;
import java.util.Date;

@Data
@ToString
@Entity
@Table(name = "his_center_doctor")
@Description("医师")
@Inheritance(strategy = InheritanceType.JOINED)
public class Doctor extends AbstractHisEntity {

    @Id
    @Column(length = 30)
    @Description("lid")
    public String lid;

    @Description("记录id")
    public Long id;
    /**
     * 账号
     */
    @Column(length = 20)
    @Description("账号")
    public String account;
    /**
     * 姓名
     */
    @Column(length = 20)
    @Description("姓名")
    public String name;
    /**
     * 性别
     */
    @Column
    @Description("性别")
    public Integer gender;
    /**
     * 头像照片
     */
    @Column(length = 500)
    @Description("头像照片")
    public String photo;

    @Column
    @Description("生日")
    public Date birthday;

    @Column(length = 20)
    @Description("手机号")
    public String phone;
    @Column
    @Description("角色id")
    public Long roleId;

    @Column(length = 50)
    @Description("角色名称")
    public String roleText;

    @Column(length = 500)
    @Description("角色说明")
    public String intro;

    @Column(length = 64)
    @Description("密码")
    public String password;
    @Column(length = 50)
    @Description("上次登录ip")
    public String latestLoginIp;
    @Column
    @Description("上次登录时间")
    public Date latestLoginTime;

    /**g
     * 级别id
     */
    @Column
    @Description("等级id")
    public Long levelId;

    /**
     * 级别名称
     */
    @Column(length = 20)
    @Description("等级名称")
    public String levelText;

    @Column
    @Description("角色类型id")
    public Integer roleTypeId;

    @Column(length = 50)
    @Description("角色类型名称")
    public String roleTypeText;

    @Column(length = 20)
    @Description("创建时间")
    public String createTime;

    /*云管需要的数据*/
    @ApiModelProperty(value = "医院ID")
    private String hospitalId;

    @ApiModelProperty(value = "系统ID")
    private String hospitalSystemId;
}
